package com.xx.service.impl;

import com.xx.dao.DeleteProductMapper;
import com.xx.service.DeleteProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author : 徐闯 ssm_admin
 * @Date : 2021-05-13 15:05:00
 * @Description : 根据id删除旅游产品
 **/
@Service
public class DeleteProductServiceImpl implements DeleteProductService {
    @Autowired
    private DeleteProductMapper deleteProductMapper;

    @Override
    @Transactional
    public int deleteOneProduct(int id) {
        return deleteProductMapper.deleteProduct(id);
    }

    @Override
    public int deleteProducts(int[] ids) {
        return deleteProductMapper.deleteProducts(ids);
    }
}
